#ifndef _MESSAGE_
#define _MESSAGE_

#include "base.h"
#include "raknet\MessageIdentifiers.h"

enum AirMessageIDType{
	ID_ROOM_CREATE = ID_USER_PACKET_ENUM,
	ID_ROOM_CREATE_SUCCESS,
	ID_ROOM_LOOKUP,
	ID_ROOM_LS,
	ID_ROOM_JOIN,
	ID_ROOM_JOIN_SUCCESS,
	ID_ROOM_LEAVE,
	ID_ROOM_READY,
	ID_ROOM_READY_SUCCESS,
	ID_ROOM_CANCEL_READY,
	ID_ROOM_CANCEL_READY_SUCCESS,

	ID_GAME_START,
	ID_GAME_START_CONFIRM,

	ID_ROOM_NOT_EXIST,
	ID_ROOM_FULL,
	ID_PLAYER_NOT_EXIST
};

struct Message {
	ushort typeId, length;
	char data[3000];
};

// message to be sent
struct Message2 {
	ushort typeId, length;
	(void*) p;
};

struct SectorCreation {
	char sectorName[30];
	char ownerId[30];
};

struct SectorJoin {
	ushort roomId;
	char playerId[30];
};

struct SectorCollection {
	ushort roomCount;
};

#endif